package com.cencat.route.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 配送查询条件VO
 * 
 * @author cencat
 * @version 1.0
 * @since 2024-01-01
 */
@Data
@Schema(description = "配送查询条件")
public class DeliveryQueryVO {

    @Schema(description = "运单号")
    private String trackingNumber;

    @Schema(description = "路线ID")
    private Long routeId;

    @Schema(description = "司机ID")
    private Long driverId;

    @Schema(description = "配送状态")
    private String deliveryStatus;

    @Schema(description = "配送类型")
    private String deliveryType;

    @Schema(description = "优先级")
    private String priority;

    @Schema(description = "收货人姓名")
    private String recipientName;

    @Schema(description = "收货人电话")
    private String recipientPhone;

    @Schema(description = "收货地址")
    private String deliveryAddress;

    @Schema(description = "发货地址")
    private String pickupAddress;

    @Schema(description = "最小货物重量（公斤）")
    private BigDecimal minCargoWeight;

    @Schema(description = "最大货物重量（公斤）")
    private BigDecimal maxCargoWeight;

    @Schema(description = "最小配送费用")
    private BigDecimal minDeliveryFee;

    @Schema(description = "最大配送费用")
    private BigDecimal maxDeliveryFee;

    @Schema(description = "计划取货时间-开始")
    private LocalDateTime plannedPickupTimeBegin;

    @Schema(description = "计划取货时间-结束")
    private LocalDateTime plannedPickupTimeEnd;

    @Schema(description = "实际取货时间-开始")
    private LocalDateTime actualPickupTimeBegin;

    @Schema(description = "实际取货时间-结束")
    private LocalDateTime actualPickupTimeEnd;

    @Schema(description = "计划配送时间-开始")
    private LocalDateTime plannedDeliveryTimeBegin;

    @Schema(description = "计划配送时间-结束")
    private LocalDateTime plannedDeliveryTimeEnd;

    @Schema(description = "实际配送时间-开始")
    private LocalDateTime actualDeliveryTimeBegin;

    @Schema(description = "实际配送时间-结束")
    private LocalDateTime actualDeliveryTimeEnd;

    @Schema(description = "创建开始时间")
    private LocalDateTime createStartTime;

    @Schema(description = "创建结束时间")
    private LocalDateTime createEndTime;

    @Schema(description = "更新开始时间")
    private LocalDateTime updateStartTime;

    @Schema(description = "更新结束时间")
    private LocalDateTime updateEndTime;

    @Schema(description = "创建人ID")
    private Long createdBy;

    @Schema(description = "更新人ID")
    private Long updatedBy;

    @Schema(description = "是否删除")
    private Boolean deleted;

    @Schema(description = "关键字搜索（运单号、收货人姓名、收货人电话、收货地址）")
    private String keyword;

    @Schema(description = "排序字段")
    private String sortField;

    @Schema(description = "排序方向（ASC/DESC）")
    private String sortOrder;

}